/**Player.java
 * 
 * This is the player of the game.
 * 
 * @author Christopher Carithers
 *Last Update: 4/28/2014
 *
 */

public class Player extends Being
{
   Backpack m_Backpack = new Backpack();
   
   public Player()
   {
      super();
   }
   
   public Player(String playerName)
   {
	  super(playerName);
   }
   
   public Player(String playerName, int xPosition, int yPosition)
   {
	  super(playerName, xPosition, yPosition);
   }
   
   public Player(String playerName, int xPosition, int yPosition, int attackLevel, int strengthLevel, int defenceLevel, int hitPointsLevel)
   {
	  super(playerName, xPosition, yPosition, attackLevel, strengthLevel, defenceLevel, hitPointsLevel);
   }
   
   public void movePlayerNorth()
   {
	  this.setYPosition(this.getYPosition() - 1);
   }
   
   public void movePlayerEast()
   {
	  this.setXPosition(this.getXPosition() + 1);
   }
   
   public void movePlayerSouth()
   {
	  this.setYPosition(this.getYPosition() + 1);
   }
   
   public void movePlayerWest()
   {
	  this.setXPosition(this.getXPosition() - 1);
   }
   
   public void fleeFromMonsterNorth()
   {
	  this.movePlayerNorth();
   }
   
   public void fleeFromMonsterSouth()
   {
	  this.movePlayerSouth();
   }
   
   public void fleeFromMonstEast()
   {
	  this.movePlayerEast();
   }
   
   public void fleeFromMonsterWest()
   {
      this.movePlayerWest();
   }
   
   public void printPlayerName()
   {
	  System.out.println("Player Name: " + this.getPlayerName());
   }
   
   public String getPlayerName()
   {
	  return this.getBeingName();
   }
   
   public void setWeapons(Weapon weapon)
   {
	  m_Backpack.setWeapons(weapon);
   }
   
   public void printWeapons()
   {
      m_Backpack.getWeaponsInBackpack();
   }
   
   public int getNumberOfWeaponsInBackpack()
   {
	  return m_Backpack.getNumberOfWeapons();
   }
   
   public void equipWeaponToPlayer(int weaponNumber)
   {
	  m_Backpack.equipedWeaponInBackpack(weaponNumber);
   }
}
